#ifndef _GANIMATION_H_
	#define _GANIMATION_H_

#include <SDL.h>

class GAnimation 
{
private:
	int CurrentFrame;
	int FrameInc;

private:
	int FrameRate; //Milliseconds
	long OldTime;

public:
	int MaxFrames;
	bool Oscillate;

public:
	GAnimation();
	~GAnimation();

	void OnAnimate();

public:
	void SetFrameRate(int Rate);
	void SetCurrentFrame(int Frame);
	int GetCurrentFrame();
};

#endif

